package cc.messcat.dao.fupin;

import cc.messcat.common.dao.BaseDaoImpl;
import cc.messcat.entity.fupin.Vision;
import cc.messcat.entity.fupin.VisionPoolFamily;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

/**
 * 2018/4/27
 */
@Repository
public class PoolVisionDaoImpl extends BaseDaoImpl<VisionPoolFamily> implements PoolVisionDao {
    @Override
    public Long merge(VisionPoolFamily visionPoolFamily) {
        Session session = getCurrentSession();
        Long id = ((VisionPoolFamily) session.merge(visionPoolFamily)).getId();
        return id;
    }
}
